import request from '@/utils/request'

/* 
权限管理相关的API请求函数
*/
const api_name = '/search'
const host = 'http://localhost:8201'
export default{
    searchByContent(content,category,limit) {
      return request({
        url: `${api_name}/${category}/${content}/${limit}`,
        method: 'get',
        baseURL: host
      })
    },
    searchById(id){
      return request({
        url: `${id}`,
        method: 'get',
        baseURL: host
      })
    },
    searchByApiName(apiName){
      return request({
        url: `${api_name}/${apiName}`,
        method: 'get',
        baseURL: host
      })
    }
    
}